package com.yf.entity;


import lombok.Setter;
import lombok.Getter;
import java.io.Serializable;
import java.util.Date;

import java.math.BigDecimal;

/**
 * 账户实体
 * 表名 account
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Wed Oct 24 13:54:17 CST 2018
 */
@Setter
@Getter
public class AccountEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //ID
    private Long id;
    //用户ID
    private Long userId;
    //账户余额
    private BigDecimal balance;
    //金币数量
    private Long goldCoin;
    //奖金余额
    private BigDecimal reward;
    //用户名称
    private String name;

    //用户头像
    private String avatar;

    public AccountEntity(){

    }

    public AccountEntity(Long userId, BigDecimal balance, Long goldCoin, BigDecimal reward, String name, String avatar) {
        this.userId = userId;
        this.balance = balance;
        this.goldCoin = goldCoin;
        this.reward = reward;
        this.name = name;
        this.avatar = avatar;
    }
}
